<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
</head>

<body>

</body>
<script>
    // const axios = require('axios/dist/node/axios.cjs');
    axios.post('http://127.0.0.1:3000/login', {
        name: 'xlm',
        password: "888"
    }).then(response => {
        console.log(response.data);
    })
</script>

</html>